<?php
namespace Kuoqi;

class Html{

    static public function tableBypaginate($opts){
        $app = new Html\TableHtml($opts);
        return $app->flushToString();
    }

    static public function aHtml($opts){
        $app = new Html\AHtml($opts);
        return $app->flushToString();
    }

    //格式化数据数组信息
    //todo--开发中
    static public function dataFormats($list,$type,$did = 'id',$dpid = 'pid',$secBack = null){
        return $list;
    }

    //
    static public function formInput($config){
        $obj = new Html\FormInput($config);
        return $obj->format();
    }

    //api读取器
    static public function readApi($config){

    }

}